<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Swiper extends Model
{
    protected $fillable = [
    	'picture', 'sort', 'link'
    ];

    public function getPicturePathAttribute()
    {
    	return strpos($this->picture, 'http') !== false? $this->picture: \Storage::url($this->picture);
        //return $this->attributes['admin'] === 'yes';
    }
}
